<template>
  <div class="home-panel container">
    <div class="title">{{ title }}<small>{{ subTitle }}</small></div>
    <div class="goods">
      <slot />
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: String,
  subTitle: String
})
</script>

<style lang="scss" scoped>
.home-panel {
  background: #fff;
  padding: 20px 0;

  .title {
    font-size: 32px;
    color: #000;

    small {
      color: #999;
      font-size: 16px;
      margin-left: 20px;
    }
  }

  .goods {
    margin-top: 20px;
  }
}
</style>
